package com.snake.springboot.authority.api.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

@ApiModel(value="权限管理-权限菜单出参参")
public class AuthMenuRsp {

    @ApiModelProperty(value="菜单ID")
    private String menuId;

    @ApiModelProperty(value="模块ID")
    private String moduleId;

    @ApiModelProperty(value="系统ID")
    private String systemId;

    @ApiModelProperty(value="父节点ID")
    private String parentsId;

    @ApiModelProperty(value="层级")
    private Integer level;

    @ApiModelProperty(value="菜单名")
    private String menuName;

    @ApiModelProperty(value="按钮标识    0：菜单   1：按钮")
    private Integer buttonFlag;

    @ApiModelProperty(value="图标路径")
    private String iconUrl;

    @ApiModelProperty(value="前端路径")
    private String frontPath;

    @ApiModelProperty(value="前端路由")
    private String frontRoute;

    @ApiModelProperty(value="是否可见 0：不可见   1：可见")
    private Integer visible;

    @ApiModelProperty(value="是否可用 0：不可用   1：可用")
    private Integer enable;

    @ApiModelProperty(value="排序序号")
    private Integer sortIndex;
    @ApiModelProperty(value="缓存：0不缓存 1 缓存")
    private Integer cacheType;

    @ApiModelProperty(value="子菜单列表")
    private List<AuthMenuRsp> children;


    public Integer getCacheType() {
        return cacheType;
    }

    public void setCacheType(Integer cacheType) {
        this.cacheType = cacheType;
    }

    public String getMenuId() {
        return menuId;
    }

    public void setMenuId(String menuId) {
        this.menuId = menuId;
    }

    public String getModuleId() {
        return moduleId;
    }

    public void setModuleId(String moduleId) {
        this.moduleId = moduleId;
    }

    public String getSystemId() {
        return systemId;
    }

    public void setSystemId(String systemId) {
        this.systemId = systemId;
    }

    public String getParentsId() {
        return parentsId;
    }

    public void setParentsId(String parentsId) {
        this.parentsId = parentsId;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public Integer getButtonFlag() {
        return buttonFlag;
    }

    public void setButtonFlag(Integer buttonFlag) {
        this.buttonFlag = buttonFlag;
    }

    public String getIconUrl() {
        return iconUrl;
    }

    public void setIconUrl(String iconUrl) {
        this.iconUrl = iconUrl;
    }

    public String getFrontPath() {
        return frontPath;
    }

    public void setFrontPath(String frontPath) {
        this.frontPath = frontPath;
    }

    public String getFrontRoute() {
        return frontRoute;
    }

    public void setFrontRoute(String frontRoute) {
        this.frontRoute = frontRoute;
    }

    public Integer getVisible() {
        return visible;
    }

    public void setVisible(Integer visible) {
        this.visible = visible;
    }

    public Integer getEnable() {
        return enable;
    }

    public void setEnable(Integer enable) {
        this.enable = enable;
    }

    public Integer getSortIndex() {
        return sortIndex;
    }

    public void setSortIndex(Integer sortIndex) {
        this.sortIndex = sortIndex;
    }

    public List<AuthMenuRsp> getChildren() {
        return children;
    }

    public void setChildren(List<AuthMenuRsp> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return "AuthMenuRsp{" +
                "menuId='" + menuId + '\'' +
                ", moduleId='" + moduleId + '\'' +
                ", systemId='" + systemId + '\'' +
                ", parentsId='" + parentsId + '\'' +
                ", level=" + level +
                ", menuName='" + menuName + '\'' +
                ", buttonFlag=" + buttonFlag +
                ", iconUrl='" + iconUrl + '\'' +
                ", frontPath='" + frontPath + '\'' +
                ", frontRoute='" + frontRoute + '\'' +
                ", visible=" + visible +
                ", enable=" + enable +
                ", sortIndex=" + sortIndex +
                ", children=" + children +
                '}';
    }
}